// 自定义元素的类型
import startImg from "@/assets/custom-start-flow.png";
import handleImg from "@/assets/custom-handle-flow.png";
import approvalImg from "@/assets/custom-approval-flow.png";
import endImg from "@/assets/custom-end-flow.png";
const customElements = ['Handle', 'Approval', 'bpmn:StartEvent', 'bpmn:EndEvent'];
const customConfig = { // 自定义元素的配置
    Handle: {
        className: "custom-icon-handle",
        url: handleImg,
        attr: { x: 0, y: 0, width: 28, height: 28 }
    },
    Approval: {
        className: "custom-icon-approval",
        url: approvalImg,
        attr: { x: 0, y: 0, width: 28, height: 28 }
    },
    'bpmn:StartEvent': {
        className: "custom-icon-start",
        url: startImg,
        attr: { x: 0, y: 0, width: 28, height: 28 }
    },
    'bpmn:EndEvent': {
        className: "custom-icon-end",
        url: endImg,
        attr: { x: 0, y: 0, width: 28, height: 28 }
    }
};
const hasLabelElements = ['bpmn:StartEvent', 'bpmn:EndEvent']; // 一开始就有label标签的元素类型

export { customElements, customConfig, hasLabelElements };
